import axios from '@/utils/request'

export const getCarModel = data => axios.get('/manager/truckType/page', {params: data})
export const getModelItem = id => axios.get(`/manager/truckType/${id}`)
export const addModelItem = data => axios.post('/manager/truckType', data)
export const editModelItem = data => axios.put(`/manager/truckType/${data.id}`, data)
export const delModelItem = id => axios.delete(`/manager/truckType/${id}`)
export const getCarList = data => axios.get('/manager/truck/page', {params: data})
export const getCarItem = id => axios.get(`/manager/truck/${id}`)
export const addCarItem = data => axios.post('/manager/truck', data)
export const getCarCount = () => axios.get('/manager/count')
export const carEnable = id => axios.put(`/manager/enable/${id}`)
export const carDisable = id => axios.put(`/manager/disable/${id}`)
